<!--新订单（父子订单）显示方式-->
<div class="order-show-block">
    <ul class="info-item-block">
        <li>
            <span class="item-hd">预订产品：</span>
            <div class="item-bd">
                <span class="item-text c-666">{$info['productname']}</span>
            </div>
        </li>
        <li>
            <span class="item-hd">预订方式：</span>
            <div class="item-bd">
                <span class="item-text c-666">{php echo Common::get_pay_type($info['paytype'])}</span>
            </div>
        </li>
        <li>
            <span class="item-hd">预订会员：</span>
            <div class="item-bd">
                <span class="item-text c-666">{$info['membername']}</span>
            </div>
        </li>
        <li>
            <span class="item-hd">价格明细：</span>
            <div class="item-bd">
                <table class="table table-border table-bordered table-bg table-order w900 mb-10" table_head=J0AuKC >
                    <thead>
                    <tr class="text-c">
                        <th><span class="c-999">订单号</span></th>
                        <th><span class="c-999">票名</span></th>
                        <th><span class="c-999">供应商</span></th>
                        <th><span class="c-999">预订日期</span></th>
                        <th><span class="c-999">单价</span></th>
                        <th><span class="c-999">数量</span></th>
                        <th><span class="c-999">小计</span></th>
                    </tr>
                    </thead>
                    <tbody>
                        {loop $info['children'] $children}
                        {if !empty($children['tourers'])}
                        {php $rowspan = count($children['tourers']) + 2;}
                        {/if}
                        <tr class="text-c">
                            <td rowspan="{php echo isset($rowspan) ? $rowspan : 1;}">
                                <span class="c-999">{$children['ordersn']}</span>
                            </td>
                            <td>
                                <span class="c-999">{$children['suit_name']}</span>
                            </td>
                            <td>
                                {if $children['supplierlist'] && $children['supplier_info']}
                                <span class="c-999">{$children['supplier_info']['suppliername']}</span>
                                {else}
                                <span class="c-999">平台自营</span>
                                {/if}
                            </td>
                            <td>
                                <span class="c-999">{$children['usedate']}</span>
                            </td>
                            <td>
                                <span class="c-999">{Currency_Tool::symbol()}{$children['price']}</span>
                            </td>
                            <td>
                                <span class="c-999">{$children['dingnum']}</span>
                            </td>
                            <td>
                                <span class="c-f60">{Currency_Tool::symbol()}{php echo $children['dingnum']*$children['price'];}</span>
                            </td>
                        </tr>
                        {if !empty($children['tourers'])}
                        {php $rowspan = $rowspan - 1;}
                        <tr class="text-c">
                            <td class="bg-grey" rowspan="{$rowspan}">
                                <span class="c-999">游客信息</span>
                            </td>
                            <td class="bg-grey">
                                <span class="c-999">姓名</span>
                            </td>
                            <td class="bg-grey">
                                <span class="c-999">性别</span>
                            </td>
                            <td class="bg-grey">
                                <span class="c-999">手机号</span>
                            </td>
                            <td class="bg-grey">
                                <span class="c-999">证件类型</span>
                            </td>
                            <td colspan="2" class="bg-grey">
                                <span class="c-999">证件号码</span>
                            </td>
                        </tr>
                        {loop $children['tourers'] $tourer}
                        <tr class="text-c">
                            <td>
                                <span class="c-999">{$tourer['tourername']}</span>
                            </td>
                            <td>
                                <span class="c-999">{$tourer['sex']}</span>
                            </td>
                            <td>
                                <span class="c-999">{$tourer['mobile']}</span>
                            </td>
                            <td>
                                <span class="c-999">{php echo $tourer['cardtype'] ? $tourer['cardtype'] : '-';}</span>
                            </td>
                            <td colspan="2">
                                <span class="c-999">{php echo $tourer['cardnumber'] ? $tourer['cardnumber'] : '-';}</span>
                            </td>
                        </tr>
                        {/loop}
                        {/if}
                        {/loop}
                    </tbody>
                </table>
            </div>
        </li>
    </ul>
</div>